package com.gozap.tree;

public class Tree {

	protected Tree leftTree;
	protected Tree rightTree;
	protected int key;

	private Tree parents;
	private int color;// 0:red,1:black

	public Tree getLeftTree() {
		return leftTree;
	}

	public void setLeftTree(Tree leftTree) {
		this.leftTree = leftTree;
	}

	public Tree getRightTree() {
		return rightTree;
	}

	public void setRightTree(Tree rightTree) {
		this.rightTree = rightTree;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public Tree getParents() {
		return parents;
	}

	public void setParents(Tree parents) {
		this.parents = parents;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

}
